package com.shuqi.model.parse.parser;

import org.xml.sax.Attributes;
import org.xml.sax.SAXException;

import com.shuqi.common.utils.Log4an;
import com.shuqi.model.parse.HandlerBase;

/**
 * 密码修改页App
 * 
 * author liyizhe
 */
public class PasswordModifyParser extends HandlerBase {

    private static final String TAG = "---lxs.debug.AccountModifyApp---";

    private String message;

    @Override
    public Object getParsedData() {
        return message;
    }

    @Override
    public void startDocument() throws SAXException {
        super.startDocument();
    }

    @Override
    public void startElement(String uri, String localName, String name, Attributes attrs)
            throws SAXException {
        Log4an.e(TAG, "localName:" + localName);
        if (localName.equals("serverinfo")) {
            Log4an.d(
                    TAG,
                    "serverinfo:state[" + isNull(attrs, "state") + "]+message("
                            + attrs.getValue("message") + ")");
        } else if (localName.equals("item")) {
            message = isNull(attrs, "message");
            Log4an.e(TAG, "message:" + attrs.getValue("message"));
        }
    }

    @Override
    public void endDocument() throws SAXException {
        super.endDocument();
    }



}
